import request from '@/utils/request'

// 查询挑拣任务明细列表
export function listPickDtl(query) {
  return request({
    url: '/wms/pickDtl/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/wms/pickDtl/initBean',
        method: 'post'
    })
}

// 查询挑拣任务明细详细
export function getPickDtl(id) {
  return request({
    url: '/wms/pickDtl/' + id,
    method: 'get'
  })
}

// 新增挑拣任务明细
export function addPickDtl(data) {
  return request({
    url: '/wms/pickDtl',
    method: 'post',
    data: data
  })
}

// 修改挑拣任务明细
export function updatePickDtl(data) {
  return request({
    url: '/wms/pickDtl',
    method: 'put',
    data: data
  })
}

// 删除挑拣任务明细
export function delPickDtl(id) {
  return request({
    url: '/wms/pickDtl/' + id,
    method: 'delete'
  })
}
